/*
 * @Date: 2020-11-14 18:09:23
 * @LastEditors: jiangh
 * @LastEditTime: 2022-03-22 13:11:00
 * @FilePath: \vueTem\src\config\index.js
 */
export default {
  check: function () {
    console.log(process.env.NODE_ENV);
    if (process.env.NODE_ENV == "production") {
      return "http://localhost:3000";
    } else {
      // console.log(window.location.host);
      return "http://" + window.location.host;
    }
  },

  ApiList: {
    login: "/api/user/login" /* 登录方法 */,

    getUserFriends: "/api/user/getUserFriends" /* 获取用户好友 */,
  },
};
